// 导入 layout 和 员工组件
import Layout from '@/layout'
import employees from '@/views/employees'
// 导入子路由 
import myimport from '@/views/employees/import/index.vue'
import mydetail from '@/views/employees/detail/index.vue'
import myprint from '@/views/employees/print/index.vue'
// 组织架构的路由规则设置
export default {
  path: '/employees',
  component: Layout,
  children: [
    {
      path: '', // 如果是从/employees请求,则除了加载Layout之外，还会加载该元素中path为空的路由，即employees的内容
      name: 'employees',
      component: employees,
      meta: {
        title: '员工',
        icon: 'dashboard'
      }
    },
    {
      path: 'myimport',
      component: myimport,
      // 路由不会在侧边栏显示
      hidden: true
    },
    {
      path: 'mydetail',
      component: mydetail,
      // 路由不会在侧边栏显示
      hidden: true
    },
    {
      path: 'myprint',
      component: myprint,
      // 路由不会在侧边栏显示
      hidden: true
    }

  ]
}